package com.aaa.system.controller;


import com.aaa.entity.LoginInfo;
import com.aaa.system.service.ILoginInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 系统访问记录 前端控制器
 * </p>
 *
 * @author L
 * @since 2023-03-24
 */
@RestController
@RequestMapping("/system/login-info")
public class LoginInfoController {

    @Autowired
    private ILoginInfoService loginInfoService;

    /**
     * 添加登录日志
     * @param loginInfo 登陆日志信息
     */
    @PostMapping("/addLoginInfo")
    public void addLoginInfo(@RequestBody LoginInfo loginInfo){
        loginInfoService.addLoginInfo(loginInfo);
    }

}

